var common = require('../../utils/common.js')
const app = getApp();
Page({
  data: common.someData,
  //事件处理函数
  bindViewTap: function () {
    wx.navigateTo({
      url: '../logs/logs'
    })

  },
  onLoad: function () {
    common.getSwiper(this, '资讯');
    this.loadList();
  },
  loadList: function () {
    var d = this.data;
    common.getList(this, d.page, d.limit, d.dg_list, '资讯');
  },

  /**
   * 用户点击右上角分享
   */
  onShareAppMessage: function () {
    return {
      title: '东固新闻资讯',
      desc: '东固新闻资讯',
      path: '/pages/news/news',
      imageUrl: '/images/news_share.jpg',
    }
  }
})